<?php
	include('db_connection.php');	
	class user_sch{
		function add_sch(){			
			$time_slot_id = $_POST['select_schedule']['0'];			
			$insert_user_sch = "INSERT INTO tbl_user_sel_sch_time (trainee_id,trainer_id,course_id,sch_date,time_slot_id) VALUES ('".$_POST['trainee_id']."','".$_POST['trainer_id']."','".$_POST['course_id']."','".$_POST['sel_date_schedule']."','".$time_slot_id."')";
			$query_user_sch = mysql_query($insert_user_sch) or die(mysql_error());
		}
	}
		
?>